﻿using C1.WPF.FlexGrid;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SteelDetection
{
    /// <summary>
    /// PageDownloadTask.xaml 的交互逻辑
    /// </summary>
    public partial class PageDownloadTask : Page
    {
        public PageDownloadTask()
        {
            InitializeComponent();
            var dic= new Dictionary<Model.TaskStatus, string> ();
            dic.Add(Model.TaskStatus.Downloading, "下载中");
            dic.Add(Model.TaskStatus.Completed, "下载完成");
            dic.Add(Model.TaskStatus.Cancelled, "已取消");
            dic.Add(Model.TaskStatus.Failed, "下载失败");
            dic.Add(Model.TaskStatus.Pending, "暂停中");
            downloadtaskgrid.Columns[1].ValueConverter = new ColumnValueConverter(dic);


        }
    }
}
